package cn.iocoder.yudao.framework.business.basic.pojo.dto;

import cn.iocoder.yudao.framework.business.basic.enums.SortTypeEnum;
import cn.iocoder.yudao.framework.validation.InEnumCode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  数据传输对象
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/01/10
 */
@Data
public class SortQueryDTO extends QueryDTO {

    @Schema(description = "排序类型：default、random、score、price", defaultValue = "id", example = "id")
    @InEnumCode(SortTypeEnum.class)
    private String sortType;

    @Schema(description = "是否升序", example = "false")
    private Boolean sortAsc;

}
